package com.pollux.controller.user;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: pollux
 * @CreateTime: 2024-10-30
 * @Description: 用户控制类
 * @Version: 1.0
 */

@RestController
@Slf4j
@RequestMapping("/user/user")
@Tag(name = "用户端用户接口")
public class UserController {

    //测试接口
    @GetMapping("/test")
    @Operation(summary = "测试接口")
    @Parameter(name = "name",description = "用户名", required = true,in = ParameterIn.QUERY)
    public String test(String name){
        return "超级人" + 3313;
    }
}
